package suanfarumen;

import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Queue;

public class day9 {

    public static void main(String[] args) {
        Queue<int[]> queue=new ArrayDeque<int[]>();
        queue.add(new int[]{1,2});
        queue.add(new int[]{2,2});
        System.out.println(queue.offer(new int[]{3,2}));
        System.out.println(queue.remove()[1]);
        System.out.println(queue);
        queue.isEmpty();
        ArrayList<int[]> newOrange =new ArrayList();
        newOrange.add(new int[]{1,2});
        newOrange.add(new int[]{2,3});
        newOrange.add(new int[]{3,4});
        System.out.println(newOrange.indexOf(new int[]{1,2}));


    }
}
